package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.YqgSetMealMapper;
import com.ruoyi.project.domain.YqgSetMeal;
import com.ruoyi.project.service.IYqgSetMealService;

/**
 * 套餐信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-15
 */
@Service
public class YqgSetMealServiceImpl implements IYqgSetMealService 
{
    @Autowired
    private YqgSetMealMapper yqgSetMealMapper;

    /**
     * 查询套餐信息
     * 
     * @param id 套餐信息主键
     * @return 套餐信息
     */
    @Override
    public YqgSetMeal selectYqgSetMealById(Long id)
    {
        return yqgSetMealMapper.selectYqgSetMealById(id);
    }

    /**
     * 查询套餐信息列表
     * 
     * @param yqgSetMeal 套餐信息
     * @return 套餐信息
     */
    @Override
    public List<YqgSetMeal> selectYqgSetMealList(YqgSetMeal yqgSetMeal)
    {
        return yqgSetMealMapper.selectYqgSetMealList(yqgSetMeal);
    }

    /**
     * 新增套餐信息
     * 
     * @param yqgSetMeal 套餐信息
     * @return 结果
     */
    @Override
    public int insertYqgSetMeal(YqgSetMeal yqgSetMeal)
    {
        return yqgSetMealMapper.insertYqgSetMeal(yqgSetMeal);
    }

    /**
     * 修改套餐信息
     * 
     * @param yqgSetMeal 套餐信息
     * @return 结果
     */
    @Override
    public int updateYqgSetMeal(YqgSetMeal yqgSetMeal)
    {
        return yqgSetMealMapper.updateYqgSetMeal(yqgSetMeal);
    }

    /**
     * 批量删除套餐信息
     * 
     * @param ids 需要删除的套餐信息主键
     * @return 结果
     */
    @Override
    public int deleteYqgSetMealByIds(Long[] ids)
    {
        return yqgSetMealMapper.deleteYqgSetMealByIds(ids);
    }

    /**
     * 删除套餐信息信息
     * 
     * @param id 套餐信息主键
     * @return 结果
     */
    @Override
    public int deleteYqgSetMealById(Long id)
    {
        return yqgSetMealMapper.deleteYqgSetMealById(id);
    }
}
